package com.feign.service;

import com.cacos.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sentinel-provider")
public interface UserFeign {
    @RequestMapping("/getUserById")
    User getUserById(@RequestParam Integer id);
}
